package com.sayimo.maker.user.service;

import com.sayimo.framework.exception.ServiceException;

/**
 * @Project: sayimoWeixinApi
 * @ClassName: MemberCustomerInterfaceService
 * @Description: MemberCustomerInterfaceService
 * @Author:	王瑞清
 * @Date:	日期：2015年9月11日  时间：下午6:52:35
 * @Version 1.0.0
 */
public interface MemberCustomerInterfaceService {
	
	/** 
	* @Title: insertMemberCustomerOpenId 
	* @Description: 添加用户OPENID
	* @param openId
	* @throws ServiceException
	* @return void
	*/ 
	public void insertOrUpdateMemberCustomerOpenId(String openId,String parentIdOpenId,String result) throws ServiceException; 
	
	
	/** 
	* @Title: queryMemberCustomerParentId 
	* @Description: 查询父级ID
	* @param openId
	* @throws ServiceException
	* @return Integer
	*/ 
	public Integer queryMemberCustomerParentId(String openId) throws ServiceException;
	
	
	/** 
	* @Title: createAccount 
	* @Description: 创建账号
	* @throws ServiceException
	* @return String
	*/ 
	public String createAccount() throws ServiceException;
	
	/** 
	* @Title: queryMemberCustomerByParentId 
	* @Description: 按parentId查询
	* @param parentId
	* @throws ServiceException
	* @return Integer
	*/ 
	public Integer queryMemberCustomerByParentId(Integer parentId) throws ServiceException;
}
